package io.renren.modules.sys.dao;

import io.renren.modules.sys.entity.ProductshelvesstcokEntity;
import io.renren.modules.sys.entity.ProductshelvesstcokVOEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.*;

/**
 * 
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-04-11 16:06:27
 */
@Mapper
public interface ProductshelvesstcokDao extends BaseMapper<ProductshelvesstcokEntity> {
    ProductshelvesstcokEntity getByProductIdAndShelvesId(@Param("productId")Integer productId, @Param("shelvesid")Integer shelvesid);

    List<ProductshelvesstcokVOEntity> getProductStockByProductId(@Param("productId")Integer productId);
}
